import http from './http'

export async function register(payload) {
  const res = await http.post('/api/auth/register', payload)
  return res.data
}

export async function login(payload) {
  const res = await http.post('/api/auth/login', payload)
  return res.data
}


